libs/light: Fix build, fix missing _libxl_types_json.h
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 25 Oct 2022 11:16:32 +0000 (12:16 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 25 Oct 2022 12:36:40 +0000 (13:36 +0100)
commit4ff0811a2b0d1c715f54550f9a3632195bb6b21f
treebb85b16149edc2dd6ac372691988e11923c644db
parenta92dc2bb30ba65ae25d2f417677eb7ef9a6a0fef
libs/light: Fix build, fix missing _libxl_types_json.h

Make may not have copied "_libxl_types_json.h" into $(XEN_INCLUDE)
before starting to build the different objects.

Make sure that the generated headers are copied into $(XEN_INCLUDE)
before using them. This is achieved by telling make about which
headers are needed to use "libxl_internal.h" which use "libxl_json.h"
which uses "_libxl_types_json.h". "libxl_internal.h" also uses
"libxl.h" so add it to the list.

This also prevent `gcc` from using a potentially installed headers
from a previous version of Xen.

Reported-by: Per Bilse <per.bilse@citrix.com>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Henry Wang <Henry.Wang@arm.com>
tools/libs/light/Makefile